package com.studyinghome.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * netty配置
 *
 * @author leslie
 * @date 2023/03/08
 */
@Component
@ConfigurationProperties(prefix = "netty")
@Data
public class NettyConfig {
    /**
     * netty监听的端口
     */
    private int port;
    /**
     * 最大内容长度
     */
    private Integer maxContentLength;
    /**
     * websocket访问路径
     */
    private String path;
}
